home *** CD-ROM | disk | FTP | other *** search
/ CD World Haziran 1997 / CD World Haziran 1997.iso / Internet ve Net Programlari / WebSite WEB Server Evaluation / WebSite WEB Server evaluation version. 32 bit Windows required.Z / DEMOINDX.CM_ / DEMOINDX.CM
Encoding:
Text File  |  1995-02-20  |  1.3 KB  |  50 lines

  1. rem
  2. rem ****************
  3. rem * DEMOINDX.CMD *
  4. rem ****************
  5. rem
  6. rem Offers an ISINDEX document if no query arguments, 
  7. rem else reports on the "results" of the query.
  8. rem
  9. rem NOTE: This flavor runs only on the Windows NT "CMD.EXE" shell
  10. rem For Windows 95 & COMMAND.COM,use DEMOINDX.BAT
  11. rem
  12. rem Bob Denny <rdenny@netcom.com>
  13. rem 20-Feb-94
  14. rem
  15. if NOT "%1"=="" goto shoquery
  16. rem
  17. rem No query, signal server to do redirect to ISINDEX demo doc.
  18. rem
  19. echo Location: /wsdocs/32demo/isindex.html
  20. echo. 
  21. echo.
  22. goto DONE
  23. rem
  24. rem There were query arguments. Generate HTML report (clunky, but at
  25. rem least you can DO it, not like COMMAND.COM!!).
  26. rem
  27. :shoquery
  28. echo Content-type:text/html
  29. echo. 
  30. echo ^<TITLE^>Query Results^</TITLE^>
  31. echo ^<H1^>Query Results^</H1^>
  32. echo ^<A HREF = ^"/wsdocs/32demo/index.html^#docquery^"^>Return to the self-test^</A^>
  33. echo ^<HR^>
  34. echo Here is what the server would have fed to the back-end program:^<P^>
  35. echo. 
  36. echo Arguments:^<BR^>
  37. echo ^<code^>%1 %2 %3 %4 %5 %6 %7 %8 %9 ^</code^>^<P^>
  38. echo.
  39. echo This report was produced by the ^<code^>demoindx.cmd^</code^>
  40. echo batch file, running under the Windows NT command shell.^<P^>
  41. echo.
  42. rem Here is a footer that is very useful:
  43. echo ^<HR^>
  44. echo ^<ADDRESS^>
  45. echo ^<A HREF=^"mailto:%SERVER_ADMIN%^"^>%SERVER_ADMIN%^</A^>
  46. echo ^</ADDRESS^>
  47. :DONE
  48.  
  49.  
  50.